﻿<%@ Page Language="C#" MasterPageFile="~/PaginaInicio.master" AutoEventWireup="true" CodeFile="Alta_Menu.aspx.cs" Inherits="Alta_Menu" Title="Página sin título" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
     <style type="text/css">
        .style5
        {
            width: 513px;
        }
        
           
        .accordionCabecera
{

background-color: #118BD9;
font-family: Tahoma;
font-size: 12px;
font-weight: bold;
margin-bottom: 2px;
padding: 2px;
cursor: pointer;
Height: 20px;
color: #CCCCCC;

}


.accordionContenido
{
font-family: Tahoma;
background-color: #0085C6;
border: none;

border-top: none;
margin-bottom: 7px;
font-size: 12px;
padding: 3px;
}


        .tablaEncabezado
        {
            color: #FFFFFF;
            height: 15px;
            font-family: Tahoma;
            font-size: medium;
            background-color: #C62D73;
            font-size: small;
            
        }
        
                .style27
        {
            color: #FFFFFF;
            height: 23px;
            font-family: Tahoma;
            font-size: medium;
        }
        .style62
        {
            width: 438px;
            text-align: right;
        }
        .style64
      {
             text-align: center;
             margin-left: 80px;
         }
        .style65
      {
          width: 106px;
          text-align: left;
          margin-left: 80px;
      }
         .style66
         {
             width: 317px;
             text-align: center;
             margin-left: 80px;
             height: 68px;
         }
         .style67
         {
             width: 106px;
             text-align: left;
             margin-left: 80px;
             height: 68px;
         }
         .style69
         {
             width: 100%;
         }
         .style70
         {
             width: 386px;
         }
     .tablaFilas
        {
        	color: #FFFFFF;
            height: 15px;
            font-family: Tahoma;
            font-size: medium;
            font-size:small;
        }
     
           
         .style71
         {
             width: 272px;
         }
     
           
         .style72
         {
             width: 189px;
         }
     
           
         .style73
         {
             width: 58px;
         }
     
           
         .style74
         {
             text-align: center;
             margin-left: 80px;
             height: 13px;
         }
         .style75
         {
             width: 106px;
             text-align: left;
             margin-left: 80px;
             height: 13px;
         }
         .style76
         {
             width: 189px;
             text-align: left;
             margin-left: 80px;
         }
     
           
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
     <table style="width: 100%;" cellspacing="-1">
        <tr>
            <td class="style71">
                &nbsp;
            <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
            </td>
            <td class="style5">
            <cc1:Accordion ID="Accordion1" runat="server"  
                                        FadeTransitions="True" FramesPerSecond="50" TransitionDuration="200"
                                        HeaderCssClass="accordionCabecera"
                                        ContentCssClass="accordionContenido" BorderColor="#00547D" style="color: #CCCCCC">
                                        <Panes>
                                           <cc1:AccordionPane ID="AccordionPane5" runat="server">
                                                <Header>Nuevo</Header>
                                                <Content> 
                                                   
                                                   
                                                   <asp:Panel ID="Panel1" runat="server" Height="100%" Width="512px">
                
                    <table style="width: 100%;" cellpadding="-1" cellspacing="-1">
                        <tr>
                            <td bgcolor="#C62D73" class="style27" 
                             
                                style="border-bottom-color: #000000; border-bottom-width: medium; border-bottom-style: solid;" 
                                colspan="2">
                                 Alta de Menú</td>
                        </tr>
                        <tr>
                            <td colspan="2" bgcolor="#00334C" style="text-align: center">
                                
                              <table style="width: 98%; margin-left: 5px; margin-right:10px; margin-bottom:5px; margin-top:5px;" 
                                    bgcolor="#00547D" cellpadding="-1" cellspacing="4">
                                    <tr>
                                         <td class="style74">
                                             <asp:TextBox ID="txtNombre" runat="server" BackColor="#0085C6" 
                                                 BorderStyle="None" BorderWidth="0px" Font-Italic="True" ForeColor="#CCCCCC" 
                                                 Height="20px" Width="200px"></asp:TextBox>
                                             <cc1:TextBoxWatermarkExtender ID="txtNombre_TextBoxWatermarkExtender" 
                                                 runat="server" TargetControlID="txtNombre" 
                                                 WatermarkText="Nombre">
                                             </cc1:TextBoxWatermarkExtender>
                                        </td>
                                         <td class="style75">
                                             </td>
                                         <td class="style76" rowspan="3">
                                             &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td class="style64">
                                            <asp:DropDownList ID="ddlTipoMenu" runat="server" 
                                                AppendDataBoundItems="True" BackColor="#0085C6" 
                                                style="font-family: Tahoma; height: 26px; font-style: italic;" 
                                                Width="200px">
                                                <asp:ListItem Value="Salon">Tipo Menú</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                        <td class="style65">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                         <td class="style64">
                                             <asp:DropDownList ID="ddlTipoAlimento" runat="server" 
                                                 AppendDataBoundItems="True" BackColor="#0085C6"  
                                                
                                                style="font-family: Tahoma; height: 26px; font-style: italic;" 
                                                 Width="200px" 
                                                 onselectedindexchanged="ddlTipoAlimento_SelectedIndexChanged" 
                                                 AutoPostBack="True">
                                                <asp:ListItem Value="Salon">Tipo Alimento</asp:ListItem>
                                            </asp:DropDownList></td>
                                         <td class="style65">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style66">
                                                                                 
                                            <asp:ListBox ID="LBAlimentos" runat="server" BackColor="#0085C6" Height="105px" 
                                                Rows="6" Width="200px" 
                                                onselectedindexchanged="LBAlimentos_SelectedIndexChanged" AutoPostBack="True" 
                                                ></asp:ListBox>
                                            <span>
                                            <br />
                                            <asp:Label ID="Label27" runat="server" style="color: #FFFFFF" Text="Cantidad:"></asp:Label>
                                            &nbsp;<asp:TextBox ID="txtCantidadAlimento" runat="server" BackColor="#0085C6" 
                                                BorderStyle="None" BorderWidth="0px" ForeColor="#CCCCCC" Height="16px" 
                                                Width="36px"></asp:TextBox>
                                            &nbsp;&nbsp;
                                            <asp:Button ID="btnAgregarInsumo" runat="server" BackColor="#0085C6" 
                                                BorderStyle="None" Font-Bold="True" Font-Italic="False" ForeColor="#CCCCCC" 
                                                Height="20px" onclick="btnAgregarInsumo_Click" style="margin-top: 0px" 
                                                Text="Agregar" ToolTip="Agregar un nuevo Insumo" ValidationGroup="1" 
                                                Width="62px" />
                                            </span>
                                        </td>
                                        <td  class="style67">
                                            </td>
                                        <td class="style72" >
                                        
                                           
                                                    <asp:GridView ID="gvDetalleAlimento" runat="server" AllowSorting="True" 
                                                        AutoGenerateColumns="False" Height="47%" style="margin-top: 0px" Width="46%">
                                                        <RowStyle CssClass="tablaFilas" />
                                                        <Columns>
                                                            <asp:BoundField DataField="Insumo" HeaderText="Insumo">
                                                                <ItemStyle CssClass="tablaFilas" />
                                                            </asp:BoundField>
                                                            <asp:BoundField DataField="Cantidad" HeaderText="Cantidad" />
                                                            <asp:BoundField DataField="Medida" HeaderText="Medida" />
                                                            <asp:BoundField DataField="Precio_por_Medida_en_$" HeaderText="$ por Medida" />
                                                        </Columns>
                                                    </asp:GridView>
                                               
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style64" colspan="3">
                                            <table class="style69">
                                                <tr>
                                                <td></td> <td></td> <td></td>
                                                </tr>
                                                <tr>
                                                   <td class="style73">
                                                        &nbsp;</td>
                                                    <td class="style70">
                                                        <asp:GridView ID="gvDetalleMenu" runat="server" AllowSorting="True" 
                                                            AutoGenerateColumns="False" Height="90%" style="margin-top: 0px" Width="98%">
                                                            <RowStyle CssClass="tablaFilas" />
                                                            <Columns>
                                                                <asp:CommandField ShowDeleteButton="True">
                                                                    <HeaderStyle ForeColor="White" />
                                                                    <ItemStyle ForeColor="White" />
                                                                </asp:CommandField>
                                                                <asp:BoundField DataField="nombre" HeaderText="Nombre">
                                                                    <ItemStyle CssClass="tablaFilas" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="cantidad" HeaderText="Cantidad" />
                                                                <asp:BoundField DataField="tipoAlimento" HeaderText="Tipo de Alimento" />
                                                            </Columns>
                                                        </asp:GridView>
                                                    </td>
                                                    <td>
                                                        &nbsp;</td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                    <td>
                                        <asp:TextBox ID="txtDescripcion" runat="server" BackColor="#0085C6" 
                                            BorderStyle="None" BorderWidth="0px" Font-Size="Small" ForeColor="#CCCCCC" 
                                            Height="70px" style="font-family: Tahoma" TextMode="MultiLine" 
                                            Width="200px"></asp:TextBox>
                                        <cc1:TextBoxWatermarkExtender ID="txtDescripcion_TextBoxWatermarkExtender" 
                                            runat="server" TargetControlID="txtDescripcion" 
                                            WatermarkText="Descripcion">
                                        </cc1:TextBoxWatermarkExtender>
                                    </td>
                                    <td>
                                    </td>
                                    <td class="style72">
                                    </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td class="style62" bgcolor="#00334C" style="border-top-color: #000000; border-top-width: medium; border-top-style: solid;">
                               
                                        <asp:Label ID="lblMensaje" runat="server" ForeColor="Maroon" 
                                            style="color: #FF3300"></asp:Label>
                                    
                            </td>
                            <td bgcolor="#00334C" 
                                style="border-top: medium solid #000000; text-align: right; margin-left: 40px;">
                               <span>
                                <asp:Button ID="btnGuardar" runat="server" BackColor="#0085C6" 
                                    BorderStyle="None" Font-Bold="True" Font-Italic="False" ForeColor="#CCCCCC" 
                                    Height="21px" style="margin-top: 0px" Text="Guardar" 
                                    ValidationGroup="1" Width="63px" onclick="btnEnviar_Click" 
                                   />
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
                               
                               </td>
                        </tr>
                    </table>
                
                
                </asp:Panel>     

                              
                                                </Content>
                                            </cc1:AccordionPane>
                                            <cc1:AccordionPane ID="AccordionPane6" runat="server" >
                                                <Header>Modificar</Header>
                                                <Content>
                                                   
                                                    <asp:Panel ID="Panel2" runat="server" Height="600%" Width="512px">
                                                        <asp:GridView ID="gvMenu" runat="server"  AutoGenerateColumns="False">
                                                        <Columns>                                                            
                                                            <asp:BoundField DataField="MenuNom" HeaderText="Nombre Menu" />
                                                            <asp:BoundField DataField="menuDes" HeaderText="Descripción Menú" />
                                                            <asp:BoundField DataField="tipoMenuNombre" HeaderText="Tipo de Menu" />
                                                            <asp:BoundField DataField="tipoMenuDescripcion" HeaderText="Descripción Tipo Menu" />
                                                        </Columns>
                                                        </asp:GridView>
                                                        <asp:Button ID="Button1" runat="server" Text="Button" />
                                                        
                                                        <asp:GridView ID="gvAlimento" runat="server"  AutoGenerateColumns="False">
                                                        <Columns>                                                            
                                                            <asp:BoundField DataField="MenuNom" HeaderText="Nombre Menu" />
                                                            <asp:BoundField DataField="menuDes" HeaderText="Descripción Menú" />
                                                            <asp:BoundField DataField="tipoMenuNombre" HeaderText="Tipo de Menu" />
                                                            <asp:BoundField DataField="tipoMenuDescripcion" HeaderText="Descripción Tipo Menu" />
                                                        </Columns>
                                                        </asp:GridView>
                                                        
                                                    </asp:Panel>
 
                                                </Content>
                                            </cc1:AccordionPane>
                                            <cc1:AccordionPane ID="AccordionPane7" runat="server">
                                                <Header>Eliminar</Header>
                                                <Content>
                                                   
                                                    <asp:Panel ID="Panel3" runat="server" Height="100%" Width="512px">
                                                    </asp:Panel>
                                                  
                                                </Content>
                                            </cc1:AccordionPane> 
                                             
                                        </Panes>
                                     
                                        
                                     
                                      
                                     
                                    </cc1:Accordion>
            
            
                
                
                
                
            &nbsp;&nbsp;
            
            
                
                
                
                
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        </table>
    
    
   
    </asp:Content>

